//-----------------------------------------------------------------------
// <copyright file="a_OrderService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_OrderService
    {
        #region a_Order

        public static void Createa_Order(a_Order a_Order)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                a_OrderDAO.Createa_Order(a_Order);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Order(a_Order a_Order)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                a_OrderDAO.Updatea_Order(a_Order);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Order(int oid)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                a_OrderDAO.Deletea_Order(oid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Order Geta_Order(int oid)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                return a_OrderDAO.Geta_Order(oid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_OrderCollection Geta_OrderList(a_OrderColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                return a_OrderDAO.Geta_OrderList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_OrderCollection Geta_OrderList(a_OrderColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_OrderDAO a_OrderDAO = new a_OrderDAO();
                return a_OrderDAO.Geta_OrderList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}